package com.control
{
	import com.view.awardItem;
	
	import flash.events.MouseEvent;
	import sekati.display.Canvas;
	import sekati.display.CoreSprite;
	
	public class awardItemManager extends CoreSprite
	{
		public var awardItemList:Array=new Array();
		public var awardItemListlength:Number=6;
		
		public function awardItemManager()
		{
			super();
			initAwardItem();
		}
		
		public function initAwardItem():void{
			for (var i:int=0;i<awardItemListlength;i++){
				var awarditem:awardItem=new awardItem();				
				awardItemList.push(awarditem);
				addChild(awarditem);
				var xx:int=(i%3)*330+10;
				var yy:int=(Math.floor(i/3))*260+20
				awarditem.x=xx;
				awarditem.y=yy;
			}		
			x=Canvas.stage.stageWidth/2-width/2;
			y=200;
		}
	}
}